Launch bar widgets are a subset of Custom Widgets that
can be used to render custom buttons and widgets inside the Launch Bar.
Creating a launch bar widget
Unlike Custom Widgets,
the process of setting up a launch bar widget is slightly different:
- Create a Code note of type JavaScript (front-end) or JSX (for Preact-based
widgets).
- The script itself uses the same concepts as Custom Widgets, including the use of a
NoteContextAwareWidgetor a BasicWidget (according
to needs).
- As examples in both legacy and Preact format, see Note Title Widget and Analog Watch.
- Don't set
#widget, as that attribute is
reserved for Custom Widgets.
- In the Global menu,
select Configure launchbar.
- In the Visible Launchers section, select Add a custom widget.
- Give the newly created launcher a name (and optionally a name).
- In the Promoted Attributes section,
modify the widget field to point to the newly created note.
- Refresh the UI.